package org.wangbao.web;

import org.wangbao.service.ContentParserService;
import org.wangbao.service.VersionControlService;

import com.googlecode.jsonplugin.annotations.JSON;
import com.opensymphony.xwork2.ActionSupport;

public class VersionControlAction extends ActionSupport {

	private String content;
	private String jouId="20100605";
	private String verId="A02";
	private String pic="A2FMZS504C.jpg";
	private String visitPath;

	public VersionControlService versionControlService;

	public String execute() throws Exception {
		
		content = versionControlService.handleJournalList();

		return "success";
	}
	
	public String visitPic(){
		visitPath =versionControlService.getPicPath(jouId, verId, pic);
		//visitPath = versionControlService.getVisitPath("20100605", "A02", "A2FMZS504C.jpg");
		return "pic";
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public VersionControlService getVersionControlService() {
		return versionControlService;
	}

	public void setVersionControlService(VersionControlService versionControlService) {
		this.versionControlService = versionControlService;
	}

	public String getJouId() {
		return jouId;
	}

	public void setJouId(String jouId) {
		this.jouId = jouId;
	}

	public String getVerId() {
		return verId;
	}

	public void setVerId(String verId) {
		this.verId = verId;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getVisitPath() {
		return visitPath;
	}

	public void setVisitPath(String visitPath) {
		this.visitPath = visitPath;
	}
}
